package com.chenshu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-04-12
 * Time：17:39
 */
@Controller
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/index")
    public String index() {
        return "/index.html";
    }

    @RequestMapping("/redirect")
    public String index2() {
        return "redirect:/index.html";
    }

    @RequestMapping("/forward")
    public String index3() {
        return "forward:/index.html";
    }
}
